<?php
/**
 * @ClassName: SequenceResolver
 * @Description: 雪花算法
 * @author: wmsh
 * @Date: 2024-05-29 13:39
 * @Version: V1.0.0
 */

namespace app\common\logic\snowflake;

interface SequenceResolver
{
    /**
     * The snowflake.
     *
     * @param int|string $currentTime current timestamp: milliseconds
     * @return int
     */
    public function sequence(int $currentTime);
}